/**************************
* @Summary
* @Author 20009200303 赵传博
* @Date 6/16/2022
* @Note
*****************************/

#ifndef REVIEW_COMPLEX_H
#define REVIEW_COMPLEX_H
#include <iostream>
using std::ostream;

class Complex {
private:
    double re, im;
public:

    Complex(double r=0, double i=0) : re(r), im(i) {  }
    Complex(const Complex& a):re(a.re),im(a.im) {  }
    operator double() const {return re;}
    Complex& operator+= (Complex a);
    Complex operator+ (Complex a);
    friend ostream& operator<<(ostream& oo, const Complex &a);
};


#endif //REVIEW_COMPLEX_H
